﻿using System.IO;
using System.Text;

namespace MobileBank1
{
	public class FileReader
	{
		public StreamReader MyFileStream { get; set; }

		public void OpenFile(string path)
		{
			MyFileStream = new StreamReader(path, Encoding.GetEncoding(866));
		}

		public string GetNextString()
		{
			return MyFileStream.ReadLine();
		}

		public void Close()
		{
			MyFileStream.Dispose();
		}
	}
}
